package com.baidu.location;

class Jni
{
  private static int a;
  private static int jdField_byte;
  private static int jdField_do;
  private static int jdField_for;
  private static int jdField_if;
  private static int jdField_int;
  private static int jdField_new = 0;
  private static int jdField_try;

  static
  {
    jdField_for = 1;
    jdField_byte = 2;
    a = 11;
    jdField_do = 12;
    jdField_try = 13;
    jdField_int = 14;
    jdField_if = 1024;
    System.loadLibrary("locSDK_2.4");
  }

  private static native String a(byte[] paramArrayOfByte, int paramInt);

  private static native String b(double paramDouble1, double paramDouble2, int paramInt1, int paramInt2);

  public static String jdField_if(String paramString)
  {
    int i = 740;
    int j = 0;
    byte[] arrayOfByte1 = paramString.getBytes();
    byte[] arrayOfByte2 = new byte[jdField_if];
    int k = arrayOfByte1.length;
    if (k > i);
    while (true)
    {
      int m = 0;
      if (j < i)
      {
        if (arrayOfByte1[j] != 0)
        {
          arrayOfByte2[m] = arrayOfByte1[j];
          m++;
        }
        while (true)
        {
          j++;
          break;
          j.a("baidu_location_service", "\\0 found in string");
        }
      }
      j.a("baidu_location_service", "number:" + arrayOfByte1.length);
      return a(arrayOfByte2, 132456) + "|tp=3";
      i = k;
    }
  }

  public static double[] jdField_if(double paramDouble1, double paramDouble2, String paramString)
  {
    double[] arrayOfDouble = { 0.0D, 0.0D };
    int i = -1;
    if (paramString.equals("bd09"))
      i = jdField_new;
    while (true)
    {
      j.a("baidu_location_service", "type:" + i);
      try
      {
        String[] arrayOfString = b(paramDouble1, paramDouble2, i, 132456).split(":");
        arrayOfDouble[0] = Double.parseDouble(arrayOfString[0]);
        arrayOfDouble[1] = Double.parseDouble(arrayOfString[1]);
        return arrayOfDouble;
        if (paramString.equals("bd09ll"))
          i = jdField_for;
        else if (paramString.equals("gcj02"))
          i = jdField_byte;
        else if (paramString.equals("gps2gcj"))
          i = a;
        else if (paramString.equals("bd092gcj"))
          i = jdField_do;
        else if (paramString.equals("bd09ll2gcj"))
          i = jdField_try;
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
      }
    }
    return arrayOfDouble;
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.baidu.location.Jni
 * JD-Core Version:    0.6.2
 */